import request from '@/utils/request'
import type { BaseResponse } from '@/types/index'

//获取文章分页列表
export function getArticleList(data: object) {
    return request.get<BaseResponse>({
        url: `website/getNewsArticlePage`,
        params: data
    })
}
//获取文章详情
export function getArticleInfo(data: object) {
    return request.get<BaseResponse>({
        url: `website/getNewsArticle`,
        params: data
    })
}
//获取文章类型
export function ArticleGroup(data: object) {
    return request.get<BaseResponse>({
        url: `website/getGroupList`,
        params: data
    })
}